import request from '@/utils/request'

// 收藏
export function addForumCollection(data) {
  return request({
    url: '/forum-collection',
    method: 'post',
    data
  })
}
// 列表
export function getForumCollectionList(params) {
  return request({
    url: '/forum-collection',
    method: 'get',
    params
  })
}
// 批量删除
export function deleteForumCollectionBatch(data) {
  return request({
    url: '/forum-collection/batch',
    method: 'delete',
    params: {
      ids: data
    }
  })
}
// 取消收藏
export function cancelCollection(data) {
  return request({
    url: '/forum-collection/cancel',
    method: 'put',
    data
  })
}